package com.qfjy;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient  // Eureka 客户端   @EnableDiscoveryClient
@EnableHystrix    //Hystrix  @EnableCircuitBreaker
@EnableFeignClients // Feign组件 扫描所有带@FeignClient注解的类 进行容器Bean管理
@MapperScan(basePackages = {"com.qfjy.mapper"})
//@SpringCloudApplication //组合注解
/*
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
 */
public class QfMeetingApplication {

    public static void main(String[] args) {
        SpringApplication.run(QfMeetingApplication.class, args);
    }

}
